package org.tim.websocket;

import org.kohsuke.MetaInfServices;
import org.tim.spi.ModuleLifecycle;
import org.tio.core.ChannelContext;
import org.tio.core.intf.Packet;
import org.tio.websocket.server.WsServerAioListener;

@MetaInfServices(ModuleLifecycle.class)
public class WsServerModuleLifecycle extends WsServerAioListener implements ModuleLifecycle {
    @Override
    public boolean onHeartbeatTimeout(ChannelContext channelContext, Long aLong, int i) {
        return super.onHeartbeatTimeout(channelContext, aLong, i);
    }

    @Override
    public void onAfterConnected(ChannelContext channelContext, boolean b, boolean b1) throws Exception {
        super.onAfterConnected(channelContext, b, b1);
    }

    @Override
    public void onAfterDecoded(ChannelContext channelContext, Packet packet, int i) throws Exception {
        super.onAfterDecoded(channelContext, packet, i);
    }

    @Override
    public void onAfterReceivedBytes(ChannelContext channelContext, int i) throws Exception {
        super.onAfterReceivedBytes(channelContext, i);
    }

    @Override
    public void onAfterSent(ChannelContext channelContext, Packet packet, boolean b) throws Exception {
        super.onAfterSent(channelContext, packet, b);
    }

    @Override
    public void onAfterHandled(ChannelContext channelContext, Packet packet, long l) throws Exception {
        super.onAfterHandled(channelContext, packet, l);
    }

    @Override
    public void onBeforeClose(ChannelContext channelContext, Throwable throwable, String s, boolean b) throws Exception {
        super.onBeforeClose(channelContext, throwable, s, b);
    }
}
